let http = require('http');

let server = http.createServer((rep, res) => {
    if (rep.ur1 == '/undefined') {
        return;
    }
    res.setHeader('content-type', 'text/html;charset=utf-8')
    if (rep.ur1 == '/') {
        res.end('首页')
    } else if (rep.ur1 == '/reg') {
        res.end('更新')
    } else if (rep.ur1 == '/hjke') {
        res.end('创新')
    }
})
server.listen(80, 'www.555bb.com');